#pragma once
//#include "../stdafx.h"
#include "./FightManager.h"
#include "../scene/menu.h"
#include "../scene/World.h"
#include "../../externel/tinyxml/tinyxml.h"
#define RES_MAP "./Res/XML/resmap.xml"

namespace SLG
{
	class World;
	class FightManager;
	class Resource
	{
	public:
		Resource(void);
		~Resource(void);

		bool Init(); //Initialize all the resource, include texture, sound, script.

		bool LoadRes();
		bool LoadFightRes();
		bool LoadModel(FightManager*);
		bool LoadMenu(Menu*);
		bool LoadMap(World*);
		D3DXVECTOR2 LoadFightMap();
		GAME_STATE LoadSceneState();
		bool NextScene();
		//bool LoadScript(const char*);
		//BOOL LoadTexture(TiXmlElement*);
		//BOOL LoadSound(TiXmlElement*);

	private:
		TiXmlDocument m_rmdoc;
		TiXmlHandle m_prmRoot;
		TiXmlElement* m_curNode;

		TiXmlDocument m_scrdoc;
		TiXmlHandle m_pscrRoot;
		
		/*TiXmlDocument m_scrdoc;
		
		TiXmlHandle m_pscrRoot;
		TiXmlElement* m_pscrNode;
		TiXmlElement* m_ptexNode;*/

	};
}